package com.day15.exer1;
/*
编写Employee类，声明为抽象类，
包含三个属性：name，id，salary。
提供必要的构造器和抽象方法：work()。
 */
public abstract class Employee {

    private String name;
    private int id;
    private double salary;

    public Employee(){

    }
    public Employee(String name,int age,double salary){
        this.name = name;
        this.id = id;
        this.salary = salary;
    }

    public abstract void work();
}
